/**
 * File name: Pair.java Author: Willard Wang Create date: Jun 30, 2013
 */
package edu.sjtu.se.prophet.utils;

/**
 * @author deathspeeder
 * 
 */
public class Pair<L, R> {

    private L left;
    private R right;

    public Pair(L left, R right) {
        if (left == null)
            throw new NullPointerException();
        if (right == null)
            throw new NullPointerException();
        this.left = left;
        this.right = right;
    }

    public L getLeft() {
        return left;
    }

    public void setLeft(L left) {
        this.left = left;
    }

    public R getRight() {
        return right;
    }

    public void setRight(R right) {
        this.right = right;
    }

}
